package com.springboot.sakila.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @TableName address
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Address {
    private Integer addressId;

    private String address;

    private String address2;

    private String district;

    private Integer cityId;

    private String postalCode;

    private String phone;

    private String location;

    private Date lastUpdate;

    private City city;

    public Address(Integer addressId, String address, String address2, String district, Integer cityId, String postalCode, String phone, String location, Date lastUpdate) {
        this.addressId = addressId;
        this.address = address;
        this.address2 = address2;
        this.district = district;
        this.cityId = cityId;
        this.postalCode = postalCode;
        this.phone = phone;
        this.location = location;
        this.lastUpdate = lastUpdate;
    }
}